<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="lib/react.development.js"></script>
    <script src="lib/react-dom.development.js"></script>
    <script src="lib/babel.min.js"></script>
</head>
<body>
    
</body>
<script>
class Child{
      constructor(props){
        props.moreMoney(1000000)
      }
}
class Father{
    constructor(){
        this.state={
            money:1000
        }
        this.Child=new Child({
            house:"四合院",
            money:1000/2,
            moreMoney:(needMoney)=>{
               this.hardWork()
            }
        }) 
    }
    hardWork(){
        console.log("努力工作")
    }
}
</script>
</html>